package com.bwie.controller;

import com.bwie.service.TypeService;
import com.bwie.utils.R;
import com.bwie.vo.TypeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class PageController {

    @Autowired
    private TypeService typeService;

    @PostMapping("page")
    public R getTypePage(@RequestBody TypeVo typeVo){
       return R.OK(typeService.getTypePage(typeVo));
    }

}
